#ifndef NETCLIENT_H
#define NETCLIENT_H

#define TCP_NODELAY     1
#include <pthread.h>
#include <vector>
#include <iostream>
#include <SDL/SDL_net.h>

#include "src/net/be_tcp_socket.h"

class Netclient
{
	public:
		Netclient();
		~Netclient();
		
		void connectToServer( const std::string& hostip, int port );
		void sendMessage( const std::string& message );
		void checkIncomingMessages( std::vector<std::string>* messages );
		bool toclose;

	private:
		BeTcpSocket m_socket;
		char buffer[1024];
};

#endif
